package com.etc.yzrnx.library.service;

import java.util.List;

import com.etc.yzrnx.library.bean.Admin;
import com.etc.yzrnx.library.bean.Reader;
import com.etc.yzrnx.library.exception.MyException;
import com.etc.yzrnx.library.utils.PageModel;

public interface IReaderService extends BaseService {

	public PageModel<Reader> selectReaderPageModel(int pageSize,int pageNo) throws MyException;

	
	public List<Reader> selectReaderByMuhuName(String name, int page,
			int pageSize);

	public boolean isStopReadByDelay_time(Reader reader) throws MyException;
	

    public Reader loginByReader(String username,String password) throws MyException;
	
	public Admin loginByAdmin(String username,String password) throws MyException;
	
	public  Reader  forgetPasswordByNameAndEmail(Reader  reader)throws MyException;
	
	public  int registerByReader(Reader  reader)throws MyException;
	
	public int updateReaderInfo(Reader reader,String name,String tel,String dep,String mail) throws MyException;
	
	public int updateReaderPwd(Reader reader,String pwd);
	public int updateReaderPasswordByReaderUserName(String username,String password)throws MyException;
}
